﻿/**
 * \brief 任务类
 * \file CTask.h
 */

#ifndef __CTASK__H
#define __CTASK__H

#include "CType.h"
#include "CTaskState.h"

using namespace Tpdef;

class CTask
{
	public:
		CTask()
		{
			this->_M_state = enTaskState_Init;
			this->_M_terminal = false;
		}

		virtual ~CTask() {};

	public:
		/// 进入下一个状态
		virtual void gotoNextState();

		/// 设置为等待回收状态
		virtual void setRecycle();

		/// 任务状态
		BYTE getState();

	private:
		BYTE _M_state;		/// 任务状态
};

#endif	/// __CTASK__H

